package com.stone.java8.pattern.command;

/**
 * desc   :
 * author : stone
 * email  : aa86799@163.com
 * time   : 08/03/2017 21 25
 */
public class SaveAction implements IAction {
    private Editor mEditor;

    public SaveAction(Editor editor) {
        this.mEditor = editor;
    }

    @Override
    public void perform() {
        this.mEditor.save();
    }
}
